package com.zzp.baidu.domain;

import java.io.Serializable;
import lombok.Builder;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

/**
 * 新闻
 * @author ZZP
 */
@Builder
@Data
@Document(indexName = "news")
public class News implements Serializable {
    private Integer id;

    @Field(name = "title")
    private String title;

    private String url;

    @Field(name = "content")
    private String content;

    @Field(name = "tags")
    private String tags;

    private static final long serialVersionUID = 1L;
}